package com.cskaoyan.service;

import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2022/10/04 10:11
 */
@Service
public class UserServiceImpl implements UserService{

    @Override
    public void sayHello1() {
        System.out.println("hello1");
    }

    @Override
    public String sayHello2(String name) {
        System.out.println("hello2");
        return name;//方便看AfterReturning通知方法接收的形参
    }

    @Override
    public String sayHello3(String name, Integer age) {
        System.out.println("hello3");
        int i = 1 / 0;//方便看AfterThrowing通知方法接收的形参
        return null;
    }
}
